package org.wisigoth.chat.swing.accountframe;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * acountCreationFrame.java
 *
 * Created on 21 janv. 2009, 15:16:57
 */

/**
 *
 * @author grafiton
 */
public class AccountCreationFrame extends javax.swing.JFrame {

    /** Creates new form acountCreationFrame */
    public AccountCreationFrame() {
        this.initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        this.creationPanel = new javax.swing.JPanel();
        this.createpanelNameLabel = new javax.swing.JLabel();
        this.parameterPanel = new javax.swing.JPanel();
        this.userLabel = new javax.swing.JLabel();
        this.userTextField = new javax.swing.JTextField();
        this.pwdLabel = new javax.swing.JLabel();
        this.pwdPasswordField = new javax.swing.JPasswordField();
        this.savePwdCheckBox = new javax.swing.JCheckBox();
        this.createButtonPanel = new javax.swing.JPanel();
        this.createButton = new javax.swing.JButton();
        this.cancelButton = new javax.swing.JButton();

        this.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        this.setTitle("Account Creation");
        this.setMinimumSize(new java.awt.Dimension(250, 400));
        this.setResizable(false);
        this.getContentPane().setLayout(new java.awt.GridBagLayout());

        this.creationPanel.setMinimumSize(new java.awt.Dimension(203, 400));
        this.creationPanel.setPreferredSize(new java.awt.Dimension(203, 400));
        this.creationPanel.setLayout(new java.awt.GridBagLayout());

        this.createpanelNameLabel.setText("Account parameters");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.ipady = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 0.5;
        gridBagConstraints.insets = new java.awt.Insets(10, 20, 5, 0);
        this.creationPanel.add(this.createpanelNameLabel, gridBagConstraints);

        this.parameterPanel.setLayout(new java.awt.GridBagLayout());

        this.userLabel.setText("User");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.weighty = 0.1;
        this.parameterPanel.add(this.userLabel, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(1, 0, 1, 0);
        this.parameterPanel.add(this.userTextField, gridBagConstraints);

        this.pwdLabel.setText("Password");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.weighty = 0.1;
        this.parameterPanel.add(this.pwdLabel, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(1, 0, 1, 0);
        this.parameterPanel.add(this.pwdPasswordField, gridBagConstraints);

        this.savePwdCheckBox.setText("Remember password");
        this.savePwdCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        this.savePwdCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AccountCreationFrame.this.savePwdCheckBoxActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.weightx = 1.0;
        this.parameterPanel.add(this.savePwdCheckBox, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        this.creationPanel.add(this.parameterPanel, gridBagConstraints);

        this.createButtonPanel.setMinimumSize(new java.awt.Dimension(170, 28));
        this.createButtonPanel.setPreferredSize(new java.awt.Dimension(170, 28));
        this.createButtonPanel.setLayout(new java.awt.GridBagLayout());

        this.createButton.setText("Create");
        this.createButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AccountCreationFrame.this.createButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        this.createButtonPanel.add(this.createButton, gridBagConstraints);

        this.cancelButton.setText("Cancel");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        this.createButtonPanel.add(this.cancelButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 0.5;
        gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);
        this.creationPanel.add(this.createButtonPanel, gridBagConstraints);

        this.getContentPane().add(this.creationPanel, new java.awt.GridBagConstraints());

        this.pack();
        this.setLocationByPlatform(true);
    }// </editor-fold>

    private void createButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
        // TODO add your handling code here:
}                                            

    private void savePwdCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {                                                
        // TODO add your handling code here:
}                                               

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AccountCreationFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JButton createButton;
    private javax.swing.JPanel createButtonPanel;
    private javax.swing.JButton cancelButton;
    private javax.swing.JLabel createpanelNameLabel;
    private javax.swing.JPanel creationPanel;
    private javax.swing.JPanel parameterPanel;
    private javax.swing.JLabel pwdLabel;
    private javax.swing.JPasswordField pwdPasswordField;
    private javax.swing.JCheckBox savePwdCheckBox;
    private javax.swing.JLabel userLabel;
    private javax.swing.JTextField userTextField;
    // End of variables declaration
	public javax.swing.JButton getCreateButton() {
		return this.createButton;
	}

	public javax.swing.JButton getCancelButton() {
		return this.cancelButton;
	}

	public javax.swing.JPasswordField getPwdPasswordField() {
		return this.pwdPasswordField;
	}

	public javax.swing.JCheckBox getSavePwdCheckBox() {
		return this.savePwdCheckBox;
	}

	public javax.swing.JTextField getUserTextField() {
		return this.userTextField;
	}
	
}
